public static String getBaseUrl() {
    public static final String BASE_URL = "your_base_url";
    return BASE_URL;
}

/**
 * 为请求添加验证令牌
 * @param request 需要添加令牌的请求
 * @return 添加了令牌的请求
 */
public static boolean validateToken(Context context, String token) {
        // 这里可以添加具体的验证逻辑
        return true;
    }

    public static Request addAuthToken(Request request) {
    String token = UserManager.getInstance().getToken();
    if (token != null && !token.isEmpty()) {
        return request.newBuilder()
                .header("Authorization", "Bearer " + token)
                .build();
    }
    return request;
}

/**
 * 发起GET请求
 * @param url 请求地址
 * @param callback 回调接口
 */
public static void get(String url, Callback callback) {
    Request request = new Request.Builder()
            .url(getBaseUrl() + url)
            .get()
            .build();
    
    // 添加认证令牌
    request = addAuthToken(request);
    
    OkHttpClient client = getOkHttpClient();
    client.newCall(request).enqueue(callback);
}

/**
 * 发起POST请求
 * @param url 请求地址
 * @param json 请求体JSON
 * @param callback 回调接口
 */
public static void post(String url, String json, Callback callback) {
    MediaType JSON = MediaType.parse("application/json; charset=utf-8");
    RequestBody body = RequestBody.create(JSON, json);
    
    Request request = new Request.Builder()
            .url(getBaseUrl() + url)
            .post(body)
            .build();
    
    // 添加认证令牌
    request = addAuthToken(request);
    
    OkHttpClient client = getOkHttpClient();
    client.newCall(request).enqueue(callback);
}